/*
 * gx_string.c
 *
 *  Created on: Apr 15, 2012
 *      Author: zhanggx
 */

#include "gx.h"

//strange
//0 indicates not same
int
gx_is_same_string(gx_string_t a, gx_string_t b) {
	if(a.len != b.len){
		return 0;
	}
	else{
		return !strncmp(a.buf, b.buf, a.len);
	}
}
